package com.zf.mall.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@Component
@FeignClient("z-mall-user-service")
public interface UserService {
    @PostMapping(value = "/user/login")
    public ResponseEntity<?> login(@RequestBody Map<String,Object> user);

    @GetMapping(value = "/user/config")
    public String getconfig();
}